<template>
  <div class="">
    <div>
      <div class="product">
        <div class="bargain_top">
          <p class="router-link-active">
            <i class="van-icon van-icon-arrow-left" @click="adds"></i>
          </p>
          <p>砍价列表</p>
          <p></p>
        </div>
        <ul class="uu_box">
          <li v-for="item in list" :key="item.id">
            <div class="small_vv">
              <img :src="item.pic" alt="" class="img_pic" />
              <div>
                <p>{{ item.name }}</p>
                <p>{{ item.characteristic }}</p>
                <ol>
                  <li>
                    <p>￥{{ item.minPrice }}</p>
                    <p>低价</p>
                  </li>
                  <li>
                    <p>￥{{ item.originalPrice }}</p>
                    <p>原价</p>
                  </li>
                  <li>
                    <p>200件</p>
                    <p>限量</p>
                  </li>
                </ol>
              </div>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
import { getfen } from "@/utils/api/home.js";
export default {
  data() {
    return {
      list: [],
    };
  },
  mounted() {
    getfen().then((res) => {
      console.log(res);
      this.list = res.data.data.goodsMap;
    });
  },
  methods: {
    adds() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang='scss'>

.special_top > p:nth-of-type(1) {
  font-size: 0.3rem;
}
.van-icon {
  position: relative;
  display: inline-block;
  // font: normal normal normal 14px/1 vant-icon;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
.special_top > p:nth-of-type(2) {
  font-size: 0.34rem;
}
.product {
  width: 100%;
  border-bottom: 0.14rem solid #f5f5f5;
  // display: flex;
  > div {
    background: white;
    font-size: 0.3rem;
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
    // padding: 0 2.9rem;
    -webkit-box-align: center;
    align-items: center;
    text-align: center;
    height: 0.93rem;
    border-bottom: 0.01rem solid #e9e8e8;
  }
}
.img_pic {
  width: 2.28rem;
  height: 2.28rem;
  border-radius: 0.06rem;
  display: block;
}
// .uu_box {
//   display: flex;
// }
.uu_box > li > div > div {
  margin-left: 0.14rem;
}
.product > ul > li > div > div > p:nth-of-type(1) {
  font-size: 0.2rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.product > ul > li > div > div > p:nth-of-type(2) {
  font-size: 0.15rem;
  color: #b2b2b2;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-top: 0.1rem;
}
.product > ul > li > div > div > ol {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-top: 13px;
}
.product > ul > li > div > div > ol li {
  text-align: center;
  margin-left: 0.5rem;
  margin-top: 0.46rem;
}
.product > ul > li > div > div > ol > li:nth-of-type(1) {
  margin-left: 0;
}
.product > ul > li > div > div > ol li {
  text-align: center;
  margin-left: 0.5rem;
  margin-top: 0.46rem;
}
.product > ul > li > div > div > ol > li:nth-of-type(1) > p:nth-of-type(1) {
  color: #d00000;
  font-weight: 700;
}
.product > ul > li > div > div > ol li > p:nth-of-type(1) {
  color: #b2b2b2;
  font-size: 0.3rem;
}
.product > ul > li > div > div > ol > li:nth-of-type(1) > p:nth-of-type(2) {
  color: #000000;
}
.product > ul > li > div > div > ol li > p:nth-of-type(2) {
  color: #b2b2b2;
  font-size: 0.3rem;
  margin-top: 0.06rem;
}
.product > ul > li > div > div > ol li > p:nth-of-type(1) {
  color: #b2b2b2;
  font-size: 0.3rem;
}
.product > ul > li > div > div > ol li > p:nth-of-type(2) {
  color: #b2b2b2;
  font-size: 0.3rem;
  margin-top: 0.06rem;
}
.small_vv {
  background: white;
  display: flex;
  padding: 0.1rem;
  border-bottom: 0.01rem solid #e9e9e9;
}
</style>
